package com.book;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class BookTest {

	public static void main(String[] args) throws FileNotFoundException {
		FileInputStream fi = new FileInputStream("src/com/book/sample_s.pgn");
		GBLineInputStream lis = new GBLineInputStream(fi);
		PgnFile pgn = new PgnFile(lis);
		// System.out.println(pgn.toString());

		// for (int i = 0; i < pgn.getCommentSize(); i++)
		// System.out.println(i + ": " + pgn.comment(i));
		// System.out.println(pgn.size());
		String[] s = pgn.getMoves();
		for (int i = 0; i < s.length; i++) {
			System.out.println(s[i]);
		}
	}

}
